<?php defined('SYSPATH') or die('No direct script access.');

class Buy extends Track {

	protected $url;
	protected $medium;
	protected $campaign;
	protected $ip;
	protected $file_name;

	public function __construct($categories='', $subcategories='', $medium='', $campaign='', $hashcookie='', $ipRecipient='')
	{
		parent::__construct();
		$this->url = $this->url.'/buy';
		$this->file_name = $this->file_name.'.buy';
		$this->ip = $ipRecipient;
		$this->campaign = $campaign;
		$this->medium = $medium;
		$this->subcategories = $subcategories;
		$this->categories = $categories;
		$this->hashcookie = $hashcookie;
		$data = array(
			'ip' => $this->ip,
			'campaign' => $this->campaign,
			'medium' => $this->medium,
			'subcategories' => $this->subcategories,
			'categories' => $this->categories,
			'hashcookie' => $this->hashcookie,
			'file_name' => $this->file_name,
		);
		parent::doTrack($data);
	}
}